export class Data {

}

export class Galaxy {
    id = 0
    name = ''
}

export class Star {
    id = 0
    name = ''
}

export class StarType {
    id = 0
    // 名称
    name = ''
    // 生成概率
    percent = 0
    // 光度范围
    luminosityMin = 0
    luminosityMax = 0
    // 稀有生成率
    rare = 0
    // 行星数范围
    planetMin = 0
    planetMax = 0
    // 热带行星概率
    hot = 0
    // 温带行星概率
    warm = 0
    // 寒带行星概率
    cold = 0
    // 气态行星概率
    gas = 0
}

export class Planet {
    id = 0
    name = ''
}

export class PlanetType {
    id = 0
    name = ''
}

export class Item {
    id = 0
    name = ''
    // 堆叠数量
    stack = 100
    // 是否是自然资源
    collect = false
    handCollect = false
    // 相态 固液气
    phase = '固态'
    // 占地面积
    area = 0
    // 大于0 产电 小于0耗电
    energy = 0
    // 热值默认可发电数量
    energyTotal = 0
    // 发电或者耗电系数
    energyRate = 1
    // 是否是机器
    machine = false
}

export class PlanetTypeItem {
    id = 0
    planetTypeId = 0
    itemId = 0
    // 资源生成概率
    percent = 0
    // 资源生成数量
    count = 0
    // 资源恢复速度
    recover = 0
}

export class PlanetItem {
    id = 0
    planetId = 0
    itemId = 0
}

export class StarItem {
    id = 0
    starId = 0
    itemId = 0
}


